package com.example.shareapp.view;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.shareapp.utils.DensityUtils;
import com.youth.banner.loader.ImageLoader;

public class LocalImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        CornerTransform transformation = new CornerTransform(context, DensityUtils.dip2px(context, 5));
        transformation.setExceptCorner(false, false, false, false);
        Glide.with(context)
                .asBitmap()
                .skipMemoryCache(true)
                .load(path)
                .transform(transformation)
                .into(imageView);
    }
}